/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 徐海涛
 * Date: 2021-11-24
 * Time: 16:17
 */
public class TestDemo5 {
    public static void main(String[] args) {
        Test1 test1 = new Test1();
        Test1 test11 = new Test1(20);//带一个参数的方法
    }
}
class Test1 {
    public String name;
    public int age;
    public Test1(int age) {
        System.out.println("带有一个参数的方法");
    }
    public Test1() {
        System.out.println("没有带参数的方法");
    }
}
